package com.our.sys.project1.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

/**
 * 划价
 * @author acer
 *
 */
@Entity
@Table(name = "T_DiscountPrice")
public class DiscountPrice implements Serializable {

    private static final long serialVersionUID = 8474289755060539907L;

    @ViewField
    private Long id;

    @ViewField
    private Long readySendId;

    @ViewField(header = "总价", width = 100, align = "left")
    private BigDecimal price;

    @ViewField(header = "操作时间", width = 100, align = "left")
    private String time;

    @ViewField(header = "操作人", width = 100, align = "left")
    private String who;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_DiscountPrice")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getReadySendId() {
        return readySendId;
    }

    public void setReadySendId(Long readySendId) {
        this.readySendId = readySendId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

}
